<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.sql.* " %>

<!DOCTYPE HTML>
<html>
<head>
<title>温度监控系统</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href="css/style-index.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet">

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/echarts.min.js"></script>

</head>
<%
	String username = (String)session.getAttribute("username");
	String password = (String)session.getAttribute("password");
%>
<body class="sticky-header left-side-collapsed" >
    <section>

		<jsp:include page="left-side.jsp"></jsp:include>
		
		<div class="main-content main-content2 main-content2copy">

			<div id="page-wrapper">
				<div class="graphs">
                    <div class="chart_main">
    					<div id="main_2" class="chart_inner"></div>
                        <script src="js/scripts-chart2-charts.js"></script>
                    </div>
				</div>
			</div>

			<div class="header-section">
				<a class="toggle-btn  menu-collapsed"><i class="fa fa-bars"></i></a>

				<div class="menu-right">
					<div class="user-panel-top">
						<div class="profile_details">
							<ul>
								<li class="dropdown profile_details_drop">
									<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
										<div class="profile_img">
											<span style="background:url(img/user.png) no-repeat center"> </span>
											 <div class="user-name">
												<p>
												<%
												if (username != null)
													out.write(username);
												else
													out.write("unknown");
												%><span>
												<%
												if (username != null && username.equals("admin"))
													out.write("Administrator");
												else
													out.write("User");
												 %></span></p>
											 </div>
											 <i class="lnr lnr-chevron-down"></i>
											 <i class="lnr lnr-chevron-up"></i>
											<div class="clearfix"></div>
										</div>
									</a>
									<ul class="dropdown-menu drp-mnu">
										<li><a href="login.jsp?logout"><i class="fa fa-sign-out"></i>
										<%
										if (username != null)
											out.write("退出");
										%>登录</a></li>
									</ul>
								</li>
								<div class="clearfix"> </div>
							</ul>
						</div>
						<div class="clearfix"></div>
					</div>
				</div>
			</div>
		</div>
	</section>

<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>
